package aplicacion;

import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.WebSession;
import org.apache.wicket.request.Request;

public class SesionPersonalizada extends WebSession{
	private static final long serialVersionUID = 1L;

	private Integer begins = 0,
					ends = 0;
	
	public static SesionPersonalizada get(){
		return (SesionPersonalizada) Session.get();
	}
	
	public SesionPersonalizada(Request request) {
		super(request);
		this.bind();
	}
	
	public void aumentarBegin(){
		this.begins++;
	}
	
	public void aumentarEnd(){
		this.ends++;
	}

	
	
	//setters&getters
	public Integer getBegins() {
		return begins;
	}

	public void setBegins(Integer begins) {
		this.begins = begins;
	}

	public Integer getEnds() {
		return ends;
	}

	public void setEnds(Integer ends) {
		this.ends = ends;
	}
}